/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mygang.dao.manager;

import java.util.List;
import mygang.dao.AbstractDAO;
import mygang.model.news.NewsItem;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 *
 * @author eugene
 */
@Repository("newsDAO")
@Transactional
public class NewsDAOImpl extends AbstractDAO implements NewsDAO {

    public List<NewsItem> getNews() {
        return getHibernateTemplate().find("from NewsItem ni order by ni.id desc");
    }
    
}
